/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.avu.tp.assign2.question1.inheritance;

/**
 *
 * @author Malotana
 */
public class MultiMediaComputer extends Computer {

    private int cd_romSpeed;

    public MultiMediaComputer(int p, int s, int cdSpeed) {
        super(p,s);
        cd_romSpeed = cdSpeed;
    }

    public void set_cdSpeed(int cdSpeed) {
        cd_romSpeed = cdSpeed;
    }

    public int get_cdSpeed() {
        return cd_romSpeed;
    }

    public String toString() {
        return super.toString() + "\n CD ROM speed: " + get_cdSpeed();
    }
}
